<h1>Operatori</h1>
<%= link_to 'Nuovo operatore', new_operator_path %>
<br /><br />
<table>
  <tr>
		<th>Login</th>
		<th>eMail</th>
		<th colspan="3">Comandi</th>
  </tr>

<% for operator in @operators %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%= operator.login.capitalize %></td>
    <td><%= operator.email %></td>
    <td><%= link_to image_tag("info.png", :alt => "show"), operator %></td>
    <td><%= link_to image_tag("edit.png", :alt => "edit"), edit_operator_path(operator) %></td>
    <td><%= link_to image_tag("delete.png", :alt => "delete"), operator, :confirm => 'Sei sicuro?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

